package com.zhp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhanghp
 * @since 2024/5/16 10:38
 */
@Data
@Component
@ConfigurationProperties(prefix = "tenant")
public class TenantConfig {

    /**
     * 租户字段
     */
    private String tenantField;

    /**
     * 请求头携带租户的字段
     */
    private String requestHeaderField;

    /**
     * 忽略的表
     */
    private List<String> ignoreTables;
}
